<template>
  <div class="container" onselectstart="return false">
    <div class="Tabbar">
      <Header ref="header" />
    </div>

    <keep-alive v-if="$route.meta.keepAlive">
      <router-view class="router"></router-view>
    </keep-alive>
    <router-view v-else class="router"></router-view>

    <div style="marginTop:60px"></div>
    <footer class="footter">
      <FooterTabbar ref="foot" />
    </footer>
  </div>
</template>

<script>
import Header from "../components/Header.vue";
import FooterTabbar from "../components/FooterTabbar.vue";
export default {
  name: "Home",
  components: {
    FooterTabbar,
    Header,
  },
};
</script>
<style lang="scss" scoped>
// @media screen and (max-width: 780px) {
// }
.container {
  // background-color: #acbcd6;
  position: absolute;
  width: 100%;
  height: 100%;

  .Tabbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 40px;
  }
  .footter {
    width: 100%;
    height: 20px;
    //     background: #5b6d81;
    line-height: 20px;
    text-align: center;
    /* 方法一 */
    position: fixed;
    bottom: 0;
  }
  .router {
    margin-top: 70px;
    padding: 0 30px 0 30px;
    width: 100%;
  }
}
</style>

